<?php
/**

 * @version $Id: allearth.php,v 1.4 2009/06/04 20:13:37 dgravato Exp $

 * @package    sketchup

 * @subpackage 

 * @author     Chris Borkowski {@link http://www.guggenheim.org}

 * @author     Created on 27-May-2009

 */
 
// no direct access

defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.model' );

class ModelSketchupsAllEarth extends JModel
{
	
		var $_sketchup = null;
  		
  		function getList()
  		{
		//check to see if the data is already loaded if not load it
		if(empty($this->_sketchups))
		{
			
			$query = "SELECT * FROM #__sketchup WHERE published = '1' ORDER BY RAND()";
			$this->_sketchups = $this->_getList($query, 0, 8);
			
		}
			
		return $this->_sketchups;
		
		} // we're all good

} //the end


?>